<?php
$this->beginWidget('bootstrap.widgets.TbBox', array(
	'title' => '欢迎',
));
?>
<?php if ($user = User::model()->cache(60)->findByPk(Yii::app()->getUser()->getId())): ?>
	<p><strong><?php echo CHtml::encode($user->nickname); ?></strong></p>
	<p>最后登录时间：<?php echo date('Y-m-d H:i:s', Yii::app()->getUser()->getState('last_login_time')); ?></p>
<?php endif; ?>
<?php $this->endWidget(); ?>
